package com.teemor.tim.rest;

import com.teemor.tim.bean.form.sns.FriendAddForm;
import com.teemor.tim.bean.form.sns.FriendCheckForm;
import com.teemor.tim.bean.form.sns.FriendDeleteForm;
import com.teemor.tim.bean.result.sns.FriendCheckResult;
import com.teemor.tim.bean.result.sns.FriendDeleteResult;
import com.teemor.tim.rest.model.RestParam;
import com.teemor.tim.bean.result.sns.FriendAddResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @ename zhoulk
 * @cname 周李科
 * @date 2020/12/8 16:57
 */
@FeignClient(name = "sns", url = "https://console.tim.qq.com/v4/sns")
public interface SnsFeignClient {

    @PostMapping("friend_add")
    FriendAddResult friendAdd(@SpringQueryMap RestParam queryParam,
                              @RequestBody FriendAddForm form);

    @PostMapping("friend_delete")
    FriendDeleteResult friendDelete(@SpringQueryMap RestParam queryParam,
                                 @RequestBody FriendDeleteForm form);


    @PostMapping("friend_check")
    FriendCheckResult friendCheck(@SpringQueryMap RestParam queryParam,
                                  @RequestBody FriendCheckForm form);

}
